public class dataStructure {
    public static void test1()
    {
        //1. 装箱
        Integer a =10;

        //2.拆箱
        int b = a;
    }

    //3. 泛型编程: 泛型是编译时期存在的当程序运行起来到JVM后通过擦除机制就没有泛型概念了
    class MyArray<T>{
        public Object[] array = new Object[10];

        public void setValue(int pos, T val)
        {
            array[pos] = val;
        }

        public T getValue(int pos)
        {
            return (T)array[pos];
        }
    }

    public void test2() {
        MyArray<Integer> myArray = new MyArray<>();

    }

    public static void main(String[] args) {

    }
}
